<?php

define('BASE_PATH',realpath('.'));
define('BASE_URL', dirname($_SERVER["SCRIPT_NAME"]));
$RUTA_HTML='http://'.$_SERVER['HTTP_HOST'] .BASE_URL.'/';

//echo $RUTA_HTML;
require_once BASE_PATH . '/clases/autoload.inc.php';
 if ( Zen::IniciarSesion())
 {
     $sesion = true;
     
 } else
 {
     $sesion = false;
     session_destroy();
     $continuar = $_SERVER['HTTP_REFERER'];
     if($continuar!='')
     $rutah=$RUTA_HTML. 'login.php?m=4&c='.$continuar;
     else
     $rutah=$RUTA_HTML. 'login.php?m=4';
     header("Location: $rutah");
 }

?>
<?php
 if ($sesion)
 {

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="es" lang="es">
<head>
<base href="<?php echo $RUTA_HTML; ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" type="image/x-icon" href="imagenes/favicon.ico" />
<title>Zen</title>

<!-- CODIGO CSS -->
<link rel="stylesheet" type="text/css" href="css/libs/redmond_ui/jquery-ui-1.8rc2.custom.css" />
<link rel="stylesheet" type="text/css" href="css/libs/jqtransform.css" />
<link rel="stylesheet" type="text/css" href="css/libs/jtip.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/libs/sexyalertbox.css"/>
<link rel="stylesheet" type="text/css" media="all" href="css/libs/demo_page.css"/>
<link rel="stylesheet" type="text/css" media="all" href="css/libs/demo_table.css"/>
<link rel="stylesheet" type="text/css" media="all" href="css/libs/demo_table_jui.css"/>
<link rel="stylesheet" type="text/css" href="css/funciones.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/libs/ui.selectmenu.css"/>
<link rel="stylesheet" type="text/css" media="all" href="css/libs/superfish.css"/>
<link rel="stylesheet" type="text/css" media="all" href="css/libs/superfish-vertical.css"/>
<link rel="stylesheet" type="text/css" media="all" href="css/libs/ui.daterangepicker.css"/>
<link rel="stylesheet" type="text/css" media="all" href="css/libs/tipsy.css"/>
<link rel="stylesheet" type="text/css" href="css/index.css" />

<link rel="stylesheet" type="text/css" href="css/modulos/usuarios.css" />
<link rel="stylesheet" type="text/css" href="css/modulos/reservas.css" />
<link rel="stylesheet" type="text/css" href="css/modulos/examenes.css" />
<link rel="stylesheet" type="text/css" href="css/modulos/atencion.css" />


<!-- JS INDEX -->
<script type='text/javascript' src='js/libs/jquery-1.4.2.min.js'></script>

<!--
<script type='text/javascript' src='js/libs/jquery.tablesorter.pager.js'></script>
-->
<script type='text/javascript' src='js/libs/jquery-ui-1.8rc2.custom.min.js'></script>
<script type='text/javascript' src='js/libs/jquery.dataTables.js'></script>
<script type='text/javascript' src='js/libs/jquery.elastic.js'></script>
<script type="text/javascript" src="js/libs/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/libs/jquery.easing.1.3.js"></script>
<script type="text/javascript" src="js/libs/sexyalertbox.v1.2.jquery.js"></script>
<script type='text/javascript' src='js/libs/jtip.js'></script>
<script type='text/javascript' src='js/libs/jquery.jqtransform.js'></script>
<script type='text/javascript' src='js/libs/jquery.form.js'></script>
<script type='text/javascript' src='js/libs/jquery.Rut.min.js'></script>
<script type='text/javascript' src='js/libs/jquery.blockUI.js'></script>
<script type='text/javascript' src='js/libs/jquery.corner.js'></script>
<script type='text/javascript' src='js/libs/jquery.validate.js'></script>
<script type='text/javascript' src='js/libs/ui.selectmenu.js'></script>
<script type='text/javascript' src='js/libs/jquery.ui.datepicker-es.js'></script>
<script type='text/javascript' src='js/libs/hoverIntent.js'></script>
<script type='text/javascript' src='js/libs/superfish.js'></script>
<script type='text/javascript' src='js/libs/daterangepicker.jquery.js'></script>
<script type='text/javascript' src='js/libs/jquery.tipsy.js'></script>
<script type='text/javascript' src='js/libs/jquery.zen.js'></script>

<script type='text/javascript' src='js/inicio.js'></script>
<script type="text/javascript" src="js/funciones.js"></script>

<script src="js/libs/jquery.maskedinput-1.2.2.min.js" type="text/javascript"></script>
<script src="js/libs/jquery.maskMoney.0.2.js" type="text/javascript"></script>
<script type="text/javascript" src="js/libs/jquery.meio.mask.js" charset="utf-8"></script>

<!--
<script type="text/javascript" src="js/libs/mootools.r560.js"></script>  
<script type="text/javascript" src="js/libs/imask.js"></script>    
-->



</head>

<body>


   <div id="wrapper">

   
     
         <div id="header">
<!--
            <div id="logo">
                 <object type="application/x-shockwave-flash" data="imagenes/logo.swf" width="780" height="142"> 
            	<param name="movie" value="imagenes/logo.swf" /> 
            	<param name="quality" value="high" />
                <param name="wmode" value="opaque"/>  
            	<img src="bannerCamisetas.png" alt="Logo Centro Imagenes" /> 
                </object> 
            </div>
-->
        
            <div class="ui-corner-bl" id="zen_menu_sesion">
                <div id="zen_menu_sesion_saludo" class="logo-usuario"><p class="texto_inline  "> <span class="nombre_usuario_login"><strong><?php

     echo strtoupper($_SESSION['usuario']);

?></strong></span></p></div><div id="zen_menu_sesion_acciones">&nbsp;<a href="salir.php" target="_self">Cerrar Sesión</a></div>
            </div>
            
			   
		 </div>

<!--
         <div id="navigation">
       <span>Usted está en: </span> 
        <strong id="dondeestoy">
-->
        <?php
/*        
	if(isset($_GET['m'],$_GET['op']))
    {
        echo Zen::Capitalizar($_GET['m']).' > '.Zen::Capitalizar($_GET['op']);
    }
    else
    {
        echo 'Inicio';
    }
    */
?>
<!--
        </strong>    
		 </div>
-->
            
         <div id="zen_contenedor_columnas">
		 <div id="leftcolumn">
		 
		      
              <?php

     //Zen::Db();
     echo Zen::MenuVertical4($_SESSION['rol']);

?>
            
		 
		 </div>
	
			 
<div id="rightcolumn">
<?php
	include_once('modulo.php');
?>		
</div>
</div>
		
		 <div id="footer">
		       
	   <p id="linksfooter"><span>Zen &copy; 2009</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a >Acerca de</a>&nbsp;&nbsp;<a >Ayuda</a>&nbsp;&nbsp;<a >Manual</a>&nbsp;&nbsp;<a >Preguntas Frecuentes</a></p>		
			    
	     </div>
	
		 
   </div>

   

   <div id="mensaje_top_cargando" class="ui-corner-tl">Procesando...</div>
</body>
</html>
<?php

 }

?>